params ["_player", "_varName", "_defualt"];
_player setVariable [_varName, profileNamespace getVariable [format["%1_%2", getPlayerUID _player, _varName], _defualt] , true];